namespace Aurora.TaskScheduler.Extension.Internel;

internal class ArgumentTypeExtension
{
    private static Dictionary<string, Type> _argumentTypeDictionary = new Dictionary<string, Type>();


    internal static void Add(string typeName, Type type)
    {
        _argumentTypeDictionary.TryAdd(typeName, type);
    }

    internal static Type Get(string typeName)
    {
        if (!_argumentTypeDictionary.ContainsKey(typeName))
        {
            return null;
        }
        return _argumentTypeDictionary[typeName];
    }
}